<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:substituteby="navtempStore::docHead(#{storecenter.name},'首页')">
</head>
<body>
<script type="text/javascript" th:substituteby="demo/store/coachleave.js::js"></script>
<style type="text/css">
    html {
        height: 100%
    }

    body {
        height: 100%;
        margin: 0px;
        padding: 0px
    }

    #container {
        height: 750px;
    }

    .myRow {
        margin: 0 auto;
        border-bottom: 1px solid #CCCCCC;
        padding: .5em;
    }
</style>
<nav th:replace="navtempStore::nav(#{storecenter.name})"></nav>
<div class="row" style="margin-top: 5em;">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12 col-md-12 main">
                <nav class="navbar navbar-default">
                    <div class="container-fluid">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2" aria-expanded="false">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="#">教练请假：</a>
                        </div>
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                            <button type="button" class="btn btn-primary navbar-btn" data-toggle="modal" onclick="window.location.href='/demo/store/addCoachleave'"
                                    data-target="#myModal">
                                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                                添加请假信息
                            </button>
                            <form class="navbar-form navbar-right" role="search" method="get" action="/system/authorization/perms/query">
                                <div class="input-group input-append date form_datetime">
                                    <input name="description" type="date" class="form-control" placeholder="开始时间"/>
                                </div>
                                <div class="input-group input-append date form_datetime">
                                    <input name="description" type="date" class="form-control" placeholder="结束时间"/>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="名字" id="dataType" name="dataType" value="" type="text"/>
                                    <input name="page.pageSize" id="pageSize" value="20" type="hidden"/>
                                    <input name="page.currentPage" id="currentPage" value="1" type="hidden"/>
                                </div>
                                <button type="submit" class="btn btn-default">查询</button>
                            </form>
                        </div>
                    </div>
                </nav>
                <div class="modal fade" id="myModal-update" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-update" aria-hidden="true">
                    <div class="modal-dialog" style="width: 400px;">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                    ×
                                </button>
                                <h4 class="modal-title" id="myModalLabel-update">
                                    教练请假
                                </h4>
                            </div>
                            <form method="post" action="/system/authorization/perms/update">
                                <div class="modal-body">
                                    <div class="input-group" style="margin-bottom: .5em;">
                                        <span class="input-group-addon">&nbsp;教&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;练&nbsp;</span>
                                        <select class="form-control">
                                            <option>请选择</option>
                                            <option>张三</option>
                                            <option>李四</option>
                                            <option>王五</option>
                                        </select>
                                    </div>
                                    <div class="input-group" style="margin-bottom: .5em;">
                                        <span class="input-group-addon">&nbsp;开始时间&nbsp;</span>
                                        <input name="roleName" class="form-control" placeholder="开始时间" aria-describedby="basic-username" type="text"/>
                                    </div>
                                    <div class="input-group" style="margin-bottom: .5em;">
                                        <span class="input-group-addon">&nbsp;结束时间&nbsp;</span>
                                        <input name="roleName" class="form-control" placeholder="结束时间" aria-describedby="basic-username" type="text"/>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                                    </button>
                                    <button type="button" onclick="window.location.href='/demo/store/leaveCourse'" class="btn btn-primary">
                                        确定
                                    </button>
                                </div>
                            </form>
                        </div><!-- /.modal-content -->
                    </div><!-- /.modal -->
                </div>
                <div class="modal fade" id="myModal-del" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-del" aria-hidden="true">
                    <div class="modal-dialog" style="width: 400px;">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                    ×
                                </button>
                                <h4 class="modal-title" id="myModalLabel-del">
                                    删除请假信息
                                </h4>
                            </div>
                            <div class="modal-body">
                                <p>
                                    确定要删除请假信息<span id="delUserName"></span>吗？
                                </p>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary" id="doDel">
                                    确定
                                </button>
                            </div>
                        </div><!-- /.modal-content -->
                    </div><!-- /.modal -->
                </div>
                <div class="table-responsive">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>姓名</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>张三</td>
                            <td>2017-07-01</td>
                            <td>2017-07-08</td>
                            <td>
                                <button type="button" class="btn btn-xs btn-danger" onclick="confirmDelUser(4)">
                                    <span>销假</span>
                                </button>
                            </td>
                        </tr>
                        <tr>
                            <td>李四</td>
                            <td>2017-06-20</td>
                            <td>2017-06-25</td>
                            <td>
                                <button type="button" class="btn btn-xs btn-danger" onclick="confirmDelUser(4)">
                                    <span>销假</span>
                                </button>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <nav style="float: right;">
                        <ul class="pagination">
                            <li>
                                <a aria-label="Previous" href="/system/authorization/perms/query?pager.currentPage=1&amp;page.pageSize=20&amp;roleName=">
                                    <span aria-hidden="true">«</span>
                                </a>
                            </li>
                            <li>
                                <a href="/system/authorization/perms/query?pager.currentPage=1&amp;page.pageSize=20&amp;roleName=">1</a>
                            </li>

                            <li>
                                <a aria-label="Next" href="/system/authorization/perms/query?pager.currentPage=1&amp;page.pageSize=20&amp;roleName=">
                                    <span aria-hidden="true">»</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
